package pl.perseus.service.studentclasses;

import lombok.Data;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import pl.perseus.dao.IStudentClassesDao;
import pl.perseus.model.StudentClasses;

@Data
@Service
@Transactional
public class StudentClassesService implements IStudentClassesService{

	@Autowired
	private IStudentClassesDao studentclassesDao;
	
	@Override
	public StudentClasses insertStudentClasses(StudentClasses sc) {
		return studentclassesDao.insertStudentClasses(sc);
	}
	
	@Override
	public StudentClasses selectByIdStudentClasses(Long id){
		return studentclassesDao.selectByIdStudentClasses(id);
	}
	
	@Override
	public StudentClasses deleteStudentClasses(StudentClasses sc) {
		return studentclassesDao.deleteStudentClasses(sc);
	}
	
	@Override
	public StudentClasses getByStudentAndClasses(StudentClasses sc){
		return studentclassesDao.getByStudentAndClasses(sc);
	}

}
